import request from '@/utils/request'
// 商圈列表
export const circlesList = () => {
  return request({
    url: `/api/vm-service/businessType`
  })
}
// 合作商搜索
export const Partners = ({ pageIndex, pageSize, name }) => {
  return request({
    url: `/api/user-service/partner/search`,
    params: {
      name, pageIndex, pageSize
    }
  })
}
// 新增合作商
export const addPartners = (data) => {
  return request({
    url: `/api/user-service/partner`,
    method: 'POST',
    data
  })
}
// 重置合作商密码
export const resetWord = (id) => {
  return request({
    url: `/api/user-service/partner/resetPwd/${id}`,
    method: 'PUT'
  })
}
// 修改合作商
export const Modifier = (id, data) => {
  return request({
    url: `/api/user-service/partner/${id}`,
    method: 'PUT',
    data
  })
}
// 删除合作商
export const deletePartner = (id) => {
  return request({
    url: `/api/user-service/partner/${id}`,
    method: 'DELETE'

  })
}
